package com.ethink.order.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.List;

/**
 * 采购退单 新增请求对象
 *
 * @author default
 * @date 2022-12-06
 */
@Data
public class PurchaseReturnOrderAddRequest {

    @Schema(description ="采购退单号",hidden = true)
    private String orderNo;

    @Schema(description ="采购单号")
    private String purchaseOrderNo;

    @Schema(description ="枚举 退单类型:1-少货退款(s1)|2-退款退货(s2)")
    private Integer returnType;

    @Schema(description ="枚举 订单状态:1-草稿(s1)|2-待审批(s2)|3-待退货(s3)|4-完成(s4)")
    private Integer returnStatus;

    @Schema(description ="退款金额",hidden = true)
    private BigDecimal returnAmt;

    @Schema(description ="制单人编码",hidden = true)
    private String createUserCode;

    @Schema(description ="制单人名称",hidden = true)
    private String createUserName;

    @Schema(description ="退款原因")
    private String reason;

    @Schema(description ="审批流程ID",hidden = true)
    private String flowId;

    @Schema(description = "备注")
    private String remark;

    @NotEmpty
    @Schema(description = "详情")
    private List<PurchaseReturnDetailOrderAddRequest> item;

}
